import React, {PureComponent} from 'react';
import RouterView from "../router/RouterView";
import {Link} from "react-router-dom";

class Manager extends PureComponent {
  render() {
    let {children} = this.props;
    return (
      <div>
        <h1>Manager</h1>

        <Link to={'/manager/shopList'}>商品列表</Link>
        <Link to={'/manager/shopDetail'}>商品详情</Link>

        <hr/>
        <RouterView routes={children}/>

      </div>
    );
  }
}

export default Manager;
